package com.bootdo.clouddo.redis;

public enum RedisEnum {


	RANK_EXP("经验值排行", "rank_exp", 1*24*3600L),
	RANK_EXP_ALL("经验值排行-所有用户", "rank_exp_all", 1*24*3600L),
	RANK_INTEGRAL("积分排行", "rank_integral", 1*24*3600L),
	RANK_SIGN_IN_DAYS("签到天数排行", "rank_sign_in_days", 1*24*3600L),
	RANK_SIGN_IN_DAYS_ALL("签到天数排行-所有用户", "rank_sign_in_days_all", 1*24*3600L),
	RANK_AGREE_COUNT("点赞数排行", "rank_agree_count", 1*24*3600L),
	RANK_AGREE_COUNT_ALL("点赞数排行-所有用户", "rank_agree_count_all", 1*24*3600L),

	USER_LEVEL("用户等级", "user_level", 7*24*3600L),

	BOOK_DETAIL("小说-详情", "book_detail_", -1L),
	BOOK_CATALOGUE("小说-目录", "book_catalogue_", 2*24*3600L),
	BOOK_CATEGORY("小说-分类", "book_category_", -1L),
	BOOK_DASHBOARD("小说-首页", "book_dashboard_", -1L),
	BOOK_BANNER("小说-banner", "book_banner_", -1L),

	USER_BOOK_MARK("用户小说章节收藏", "user_book_mark", 7*24*3600L),
	;
	
	private String key;
	private String desc;
	private Long expire;

	RedisEnum(String desc,String key,Long expire){
		this.key = key;
		this.desc=desc;
		this.expire = expire;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public Long getExpire() {
		return expire;
	}
	public void setExpire(Long expire) {
		this.expire = expire;
	}

}
